$(function(){
	//用户名密码
	$.extend($.fn.validatebox.defaults.rules, {    
	    minLength: {    
	        validator: function(value, param){    
	            return value.length >= param[0];    
	        },    
	        message: 'Please enter at least {0} characters.'   
	    }    
	});  
	$('#username').textbox({
		missingMessage:'用户名必填'
	});
	$('#name').textbox({
		missingMessage:'姓名必填'
	});
	//年龄
	$('#age').numberbox({    
		missingMessage:'年龄必填',
		min:0, 
	    max:200,
	    precision:0    
	});  
	//电话
	$('#phone').numberbox({    
		missingMessage:'电话必填',
	    min:0, 
	    max:20000000000,
	    precision:0    
	});
});

